package com.sbj.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author summer
 * @since 2024/08/10 10:02:39
 * 银行卡
 */
@Getter
@Setter
@TableName("bank")
public class Bank implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("member_id")
    private Integer memberId;

    @TableField("name")
    private String name;

    @TableField("phone")
    private String phone;

    @TableField("open_bank")
    private String openBank;

    @TableField("bank_card")
    private String bankCard;

    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @TableField("alipay_account")
    private String alipayAccount;

    @TableField("alipay_image")
    private String image;

    /**
     * 0银行卡1支付宝
     */
    @TableField("type")
    private Integer type;

}
